package com.xinqi.modules.prepare.question.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.prepare.question.domain.PrepareQuestionFolderRefEntity;
import com.xinqi.modules.prepare.question.dto.req.PrepareQuestionFolderRefCreateDTO;
import com.xinqi.modules.prepare.question.dto.req.PrepareQuestionFolderRefUpdateDTO;
import com.xinqi.modules.prepare.question.dto.rsp.PrepareQuestionFolderRefResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 备课区试题夹关联题目转换
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class PrepareQuestionFolderRefConvert {
    public abstract PrepareQuestionFolderRefEntity create(PrepareQuestionFolderRefCreateDTO s);

    public abstract PrepareQuestionFolderRefEntity update(PrepareQuestionFolderRefUpdateDTO s, @MappingTarget PrepareQuestionFolderRefEntity t);

    public abstract PrepareQuestionFolderRefEntity update(PrepareQuestionFolderRefUpdateDTO s);

    public abstract PrepareQuestionFolderRefResultDTO convert(PrepareQuestionFolderRefEntity s);
}
